﻿using Microsoft.Extensions.Options;

namespace Test.WindowsForms.SQLite
{
    internal class TestLogConfig
    {
        private readonly IOptionsSnapshot<LogConfig> options;

        public TestLogConfig(IOptionsSnapshot<LogConfig> options)
        {
            this.options = options;
        }

        public void Test()
        {
            System.Console.WriteLine("options.Value.ApiUri = " + options.Value.ApiUri);

            System.Console.WriteLine(System.Text.Json.JsonSerializer.Serialize(options.Value));
        }
    }
}